package test;


import restlet.description.convert.RESTConfigurationDescription;
import restlet.description.convert.RESTConfigurationXMLConverter;
import restlet.description.convert.RESTModuleDescription;
import restlet.description.convert.RESTResourceDescription;
import restlet.runtime.RESTResource;

import com.thoughtworks.xstream.XStream;

public class Main {

	public static void main(String[] args) {
		
		XStream streamer = new XStream();

		
		RESTResource resourceHandlerManager = new RESTResource();
		RESTResourceDescription resourceHandlerManagerDescription = new RESTResourceDescription();
		RESTConfigurationDescription configuration = new RESTConfigurationDescription();
		RESTModuleDescription moduleRESTManagerDescription = new RESTModuleDescription();
		moduleRESTManagerDescription.getResources().add(resourceHandlerManagerDescription);
//		configuration.getModuleConfigurationFiles().add(moduleRESTManagerDescription);
//		resourceHandlerManagerDescription.getGetHandlers().put(, value);
		RESTConfigurationXMLConverter converter = new RESTConfigurationXMLConverter();
		String xml = converter.toXML(moduleRESTManagerDescription);
		System.out.println(xml);
		
		
		
	}

		
	
}
